﻿using System;
using System.Runtime.Serialization;
using System.Web.Script.Serialization;
namespace EDTS.Model.Commons
{
    [DataContract]
    public class FileModel:MBase
    {
        [ScriptIgnore]
        [Model]
        public byte[] Data { get; set; }
        [DataMember]
        [Model]
        public string LocalName { get; set; }
        [DataMember]
        [Model]
        public int Size { get; set; }
        [DataMember]
        [Model]
        public string Extension { get; set; }
    }

    [DataContract]
    public class FileCollection : ModelCollectionBase<FileModel> { }
}
